Skip to content

Conversation

@pssrawat
Copy link
Contributor

Summary:
After XNNPack delegation, for llama predictor, some const tensors in the exported program are eliminated, e.g., c__prop_tensor_constant32 in P1688172607.
If we run constant_prop_pass after this point, the const tensor naming logic in the implementation is incorrect, and could create redefinition of const tensors (error in P1687944413).

This diff fixes the naming logic of const tensors in the pass.

Differential Revision: D66568874

@pytorch-bot
Copy link

pytorch-bot bot commented Dec 12, 2024

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/7301

Note: Links to docs will display an error until the docs builds have been completed.

✅ No Failures

As of commit c09bdb3 with merge base 3f7eb3b (image):
💚 Looks good so far! There are no failures yet. 💚

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Dec 12, 2024
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D66568874

pssrawat added a commit to pssrawat/executorch that referenced this pull request Dec 13, 2024
Summary:

After XNNPack delegation, for llama predictor, some const tensors in the exported program are eliminated, e.g., c__prop_tensor_constant32 in P1688172607. 
If we run constant_prop_pass after this point, the const tensor naming logic in the implementation is incorrect, and could create redefinition of const tensors (error in P1687944413). 

This diff fixes the naming logic of const tensors in the pass.

Differential Revision: D66568874
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D66568874

pssrawat added a commit to pssrawat/executorch that referenced this pull request Dec 13, 2024
Summary:

After XNNPack delegation, for llama predictor, some const tensors in the exported program are eliminated, e.g., c__prop_tensor_constant32 in P1688172607. 
If we run constant_prop_pass after this point, the const tensor naming logic in the implementation is incorrect, and could create redefinition of const tensors (error in P1687944413). 

This diff fixes the naming logic of const tensors in the pass.

Differential Revision: D66568874
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D66568874

Summary:

After XNNPack delegation, for llama predictor, some const tensors in the exported program are eliminated, e.g., c__prop_tensor_constant32 in P1688172607. 
If we run constant_prop_pass after this point, the const tensor naming logic in the implementation is incorrect, and could create redefinition of const tensors (error in P1687944413). 

This diff fixes the naming logic of const tensors in the pass.

Differential Revision: D66568874
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D66568874

@facebook-github-bot facebook-github-bot merged commit 745d47a into pytorch:main Dec 16, 2024
45 of 46 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported topic: not user facing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants